package com.designPattern.foctory.staticFactory;

/**
 * @author mxs
 */
public class Test1 {
    public static void main(String[] args) {
        Instance instance = InstanceStaticFactory.createInstance(ExcellentInstance.class.getName());
        Instance instance1 = InstanceStaticFactory.createInstance(ExcellentInstance.class.getName());
        System.out.println(instance.hashCode());
        System.out.println(instance1.hashCode());
    }
}
